//
//  DDMusicPlayer.h
//  ialone
//
//  Created by lanou on 16/1/12.
//  Copyright © 2016年 JasperSong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface DDMusicPlayer : NSObject

@property (nonatomic, assign) NSInteger currentTime; // 当前的时间
@property (nonatomic, assign) NSInteger finishTime;  // 总的播放时间
@property (nonatomic, assign, readonly) BOOL isPlaying;

// 初始化一个播放器
+(instancetype)shareMusicPlayerWithURLString:(NSString *)urlString;

// 播放
- (void)play;

// 暂停
- (void)pause;

// 停止
- (void)stop;

// 快进10s
- (void)forward;

// 快退10s
- (void)toBack;

@end
